<?php

namespace app\product\controller;
use app\common\controller\PCBase;
use app\product\logic\ProductLogic;
use Throwable;
use  think\App;
class ProductNums extends PCBase
{
    protected $productLogic = null;
    public function __construct(App $app,ProductLogic $productLogic)
    {
        parent::__construct($app);
        $this->productLogic = $productLogic;
    }


    /**
     * 查看列表
     * @throws Throwable
     */
    public function index()
    {
        $params   = $this->request->post();
        return $this->productLogic->getProductNumList($params);
    }


    /**
     * @desc 获取售卖产品的列表
     * @date 2024-04-25
     */
    public function getSpuInfo(){
        $params   = $this->request->post();
        return $this->productLogic->getSpuInfo($params);
    }

    /**
     * @desc 获取售卖产品的列表
     * @date 2024-04-25
     */
    public function export(){
        $params   = $this->request->post();
        return $this->productLogic->exportInfo($params);
    }



}